﻿using System;
using System.Windows.Data;

namespace Informant.Clients.UI.Wpf4.Converters
{
	public class ValueSlashValueStringConverter : IMultiValueConverter
	{
		#region IMultiValueConverter Members

		public Object Convert(Object[] values, Type targetType, Object parameter, System.Globalization.CultureInfo culture)
		{
			Object result = Binding.DoNothing;
			if (values != null && values.Length == 2)
			{
				result = String.Format("{0} / {1}", values[0], values[1]);
			}
			return result;
		}

		public Object[] ConvertBack(Object value, Type[] targetTypes, Object parameter, System.Globalization.CultureInfo culture)
		{
			throw new NotImplementedException();
		}

		#endregion
	}
}
